app.controller('vipIntegralRulePageCtrl',function($scope,$state,PopupService,$stateParams,$http,$myconfig,$timeout,$ionicConfig){
    //从服务器请求数据列表
    $scope.RuleList = function(){
        $http.get($myconfig.api.base_host + '/integralrule/list_integralrule')
        .then(function(res){
            // console.log(res.data);
            if(res.data.success){
                $scope.RuleListData = res.data.data;
            }else{
                $scope.err = res.data.data;
            }
        });
    };
    $scope.RuleList();

    $scope.$on('$ionicView.enter', function(){

        $ionicConfig.views.swipeBackEnabled(false);

    });

});
